package com.yl.navigation.di

import com.yl.common.network.RetrofitManager
import com.yl.navigation.api.NavigationApi
import com.yl.navigation.repo.NavigationRepo
import com.yl.navigation.viewmodel.NavigationViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * Created by stew on 8/5/22.
 */
val navigationModule = module {
    single { RetrofitManager.getService(NavigationApi::class.java) }
    single { NavigationRepo(get()) }
    viewModel { NavigationViewModel(get()) }
}